<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>主页</title>
</head>
<body>
	
	<nav class="navbar navbar-primary" role="navigation">
		<div class="container-fluid">
			<div class="navbar-header">
				<a class="navbar-brand" href="/qaplus/index/to_home.htm">QA问答系统</a>
			</div>
			<div class="navbar-body" id="menuBar">
				<!-- js中动态生成....... -->
			</div>

			<div class="navbar-right">
				<ul class="nav navbar-nav">
					<li><a href="javascript:void(0);"> <span
							class="glyphicon glyphicon-log-out" onclick="logout()"
							style="font-size: 23px; color: white; cursor: pointer;"></span>
					</a></li>
				</ul>
			</div>


			<div class="nav navbar-nav navbar-right"
				style="margin-top: 4px; cursor: pointer;">
				<c:if
					test="${CURRENT_OPERATOR.hasIcon==null || CURRENT_OPERATOR.hasIcon=='N' }">
					<img data-toggle="popover" class="img-circle" alt="头像" width="40px"
						id="top_img"
						onclick="window.open('/qaplus/index/to_update_my_info.htm', '个人信息修改', null, null)"
						height="40px" src="${basePath }static/img/icon_default.jpg">
				</c:if>
				<c:if test="${CURRENT_OPERATOR.hasIcon=='Y' }">
					<img data-toggle="popover" class="img-circle" alt="头像" width="40px"
						id="top_img"
						onclick="window.open('/qaplus/index/to_update_my_info.htm', '个人信息修改', null, null)"
						height="40px" src="/qaplus/user/preview_img.htm">
				</c:if>
			</div>

			<div class="navbar-right">
				<ul class="nav navbar-nav">
					<li><a href="javascript:void(0);" onclick="getFestival()">
							<span class="glyphicon glyphicon-calendar"
							style="font-size: 23px; color: white; cursor: pointer;"></span>
					</a></li>

					<li><a href="/qaplus/index/to_board.htm" target="_blank">
							<span class="glyphicon glyphicon-list-alt"
							style="font-size: 23px; color: white; cursor: pointer;"><i></i></span>
					</a></li>

					<li><a href="javascript:void(0);" onclick="addBoard()"> <span
							class="glyphicon glyphicon-plus"
							style="font-size: 23px; color: white; cursor: pointer;"></span>
					</a></li>

				</ul>
			</div>


			<div class="box">
				<div class="t_news">
					<!-- <b>公告：</b> -->
					<ul class="news_li">
						<!-- 						<li><a href="/qaplus/index/to_board.htm" target="_blank">公告内容1公告内容1公告内容1公告内容1</a></li>
						<li><a href="/qaplus/index/to_board.htm" target="_blank">乐动魔方 Plus</a></li>
						<li><a href="/qaplus/index/to_board.htm" target="_blank">亡灵杀手 汉化版</a></li>
						<li><a href="/qaplus/index/to_board.htm" target="_blank">jq22 搜集整理</a></li>
						<li><a href="/qaplus/index/to_board.htm" target="_blank">你疯啦 iphone壁纸</a></li> -->
					</ul>
					<ul class="swap"></ul>
				</div>
			</div>


		</div>

		<div style="display: none" id="festival">
			<!-- js中生成 -->
		</div>
	</nav>
	<div
		style="display: none; width: 95%;height:100%; margin: 0 auto; text-align: center;"
		id="board">

		<div style="width: 55%; float: left;" id="homeworkDiv">
			<form role="form" id="addBoardForm">
				<div class="form-group" style="margin-top: 15px">
					<input type="text" class="form-control" id="startTime"
						name="startTime" readonly="readonly" placeholder="开始时间">
				</div>
				<div class="form-group">
					<input type="text" class="form-control" id="endTime" name="endTime"
						readonly="readonly" placeholder="结束时间">
				</div>
				<div class="form-group">
					<textarea class="form-control" rows="3" name="content"></textarea>
				</div>

				<div class="form-group">
					<div id="checkboxList1">
						<input type="radio" name="importantFlag" value="Y"
							id="importantFlag" /><label for="importantFlag">重要</label> <input
							type="radio" name="keepTopFlag" value="Y" id="keepTopFlag" /><label
							for="keepTopFlag">置顶</label>
					</div>
				</div>
			</form>
			<button type="button" class="btn btn-primary"
				onclick="doAddBoard(true)">继续公告</button>
			<button type="button" class="btn btn-primary"
				onclick="doAddBoard(false)" style="margin-left: 45px;">发布公告</button>
		</div>
		<div
			style="width: 10%; float: left; text-align: center; height: 100%;">
			<span class="glyphicon glyphicon-arrow-right"
				style="font-size: 60px; color: #0088CC; line-height: 200px"></span>
		</div>

		<div style="width: 35%; float: left;">
			<ul id="treeDemo" class="ztree"></ul>
		</div>
	</div>

</body>
</html>